<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
    第<b>${ps.currentPage}</b>页&nbsp;&nbsp;
    <a class="layui-btn layui-btn-sm" href="/ServletCustomer?action=${requestScope.gwcurl}&cusId=${sessionScope.customer.id}&statuc=${scStatuc}&index=1">首页</a>
    <a class="layui-btn layui-btn-sm" href="/ServletCustomer?action=${requestScope.gwcurl}&cusId=${sessionScope.customer.id}&statuc=${scStatuc}&index=${ps.currentPage-1>0?ps.currentPage-1:1}">上一页</a>
    <a class="layui-btn layui-btn-sm" href="/ServletCustomer?action=${requestScope.gwcurl}&cusId=${sessionScope.customer.id}&statuc=${scStatuc}&index=${ps.currentPage<ps.totalPages?ps.currentPage+1:ps.currentPage }">下一页</a>
    <a class="layui-btn layui-btn-sm" href="/ServletCustomer?action=${requestScope.gwcurl}&cusId=${sessionScope.customer.id}&statuc=${scStatuc}&index=${ps.totalPages}">末页</a>
    &nbsp;&nbsp;共<b>${ps.totalPages}</b>页&nbsp;&nbsp;
    <select id="jump1">
        <c:forEach begin="1" varStatus="tea" end="${ps.totalPages}">
            <option name="op1" value="${tea.count}">第${tea.count}页</option>
        </c:forEach>
    </select> &nbsp;&nbsp;
    <b class="layui-btn layui-btn-sm" onclick="jump()">跳转页面</b>
    <script>
        document.getElementsByName("op1")[${ps.currentPage-1}].selected=true;
        function jump() {
            var number=document.getElementById("jump1").value;
            location="/ServletCustomer?action=${requestScope.gwcurl}&cusId=${sessionScope.customer.id}&statuc=${scStatuc}&index="+number;
        }
    </script>

</body>
</html>
